{template "content","header"}
	
	<div class="main">
		<div class="wrapper bg">
			<div class="left">
				<!-- choose -->
				<div class="choose">
					<div class="title">选择手机机型</div>
					<div class="con">
						<img src="{IMG_PATH}phone.gif"/>
						<p><a href="choose.htm?height=230&width=430" target="_blank" class="thickbox">选择手机机型>></a></p>
						<p>网站的ROM将与您的机型自动适配</p>
					</div>
				</div>
				<!-- app -->
				<div class="hotapp">
					<h2>热门应用下载<span class="hot"></span></h2>
					<ul>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
					</ul>
				</div>
				<!-- zx-->
				<div class="hotzx">
					<h2>热门资讯<span class="hot"></span></h2>
					<ul>
						<li><span>[HTC G2]</span><a href="#">刷机教程刷机教程刷机教程</a></li>
						<li><span>[HUAWEI U888]</span><a href="#">刷机教程刷机教程刷机教程</a></li>
						<li><span>[02-10]</span><a href="#">刷机教程刷机教程刷机教程</a></li>
						<li><span>[02-10]</span><a href="#">刷机教程刷机教程刷机教程</a></li>
						<li><span>[02-10]</span><a href="#">刷机教程刷机教程刷机教程</a></li>
						<li><span>[02-10]</span><a href="#">刷机教程刷机教程刷机教程</a></li>
						<li><span>[02-10]</span><a href="#">刷机教程刷机教程刷机教程</a></li>
					</ul>
				</div>	
			</div>
			<div class="right">
				<div class="up">
					<div class="ppt" id="KinSlideshow" style="visibility:hidden;">
						<a href="#" target="_blank"><img src="{IMG_PATH}pic.gif" width="460" height="200" /></a>
						<a href="#" target="_blank"><img src="{IMG_PATH}pic.gif" width="460" height="200" /></a>
						<a href="#" target="_blank"><img src="{IMG_PATH}pic.gif" width="460" height="200" /></a>
					</div>
					<div class="pp">
						<div class="pp_l">
							<a href="#" class="goolge"></a>
							<a href="#" class="htc"></a>
							<a href="#" class="sum"></a>
							<a href="#" class="more">点击查看更多机型<img src="{IMG_PATH}crow.gif"/></a>
						</div>
						<div class="pp_r">
							<a href="#" class="hw"></a>
							<a href="#" class="moto"></a>
							<a href="#" class="zte"></a>
						</div>
					</div>
						
				</div>
				<div class="app">
					<ul>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
						<li><a href="#"><img src="{IMG_PATH}pic.gif"/></a><p><a href="#">123</a></p></li>
					</ul>
				</div>
				<div class="hotphone">
					<div class="title"><h2>热门机型</h2><a href="#">更多>></a></div>
					<ul>
					{pc:get sql="select c.catid,sum(h.views) as views,c.url,c.image,c.catname from romzj_hits h,romzj_category c where h.catid = c.catid and c.modelid=2 group by catid limit 0,9--" return="data"}
                    {loop $data $r}
						<li>
							<div class="img"><a href="{$r[url]}"><img src="{thumb($r[image],90,0)}" title="{$r[catname]}"/></a></div>
							<div class="desc">
								<h3><a href="{$r[url]}">{$r[catname]}</a></h3>
								<div class="num">
								<p>下载数：<span>{$r[views]}</span></p>
								{pc:get sql="SELECT count(1) as roms FROM romzj_download WHERE catid = $r[catid]" return="data"}
								{loop $data $v}
								<p>ROM：<span>{$v[roms]}</span></p>
								{/loop}
								{/pc}
								</div>
							</div>
						</li>
						 {/loop}
                  {/pc}
					</ul>
				</div>
				<div class="gg"><img src="{IMG_PATH}pic.gif" width="750" height="90"/></div>
			</div>
		</div>
	</div>
{template "content","footer"}
	<script type="text/javascript">
$(function(){
	$("#KinSlideshow").KinSlideshow({
		titleBar:{titleBar_alpha:0},
			btn:{btn_bgColor:"#FFFFFF",btn_bgHoverColor:"#83aa01",btn_fontColor:"#000000",btn_fontHoverColor:"#FFFFFF",btn_borderColor:"#cccccc",btn_borderHoverColor:"#83aa01",btn_borderWidth:1}
	});
});
</script>
</body>
</html>
